@import "../variables";

:where(.hxiw-page-layout) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #F6F7F9;

  background-repeat: no-repeat;

  &.bg-grey-full {
    background-image: url("@/assets/img/login_bg.png");
    background-size: 100% 100%;

    .hxiw-page-header {
      background-color: #F6F7F9;
    }

  }

  &.bg-bule-328 {
    background-image: url("@/assets/img/bg_blue_328.png");
    background-size: 100% 328px;

    .hxiw-page-header {
      border-color: rgba(255, 255, 255, 0.4);
    }
  }

  &.bg-bule-450 {
    background-image: url("@/assets/img/bg_blue_450.png");
    background-size: 100% 450px;

    .hxiw-page-header {
      border-color: rgba(255, 255, 255, 0.3);
    }
  }

  &.bg-bule-433 {
    background-image: url("@/assets/img/bg_blue_433.png");
    background-size: 100% 442px;
    background-position-y: 74px;
  }

  > .hxiw-page-header {
    top: 0;
    position: sticky;
    width: 100%;
    //z-index: 10;
    //background: rgba(255, 255, 255, 0.4);
    border-radius: 0;
    border-bottom: 1px solid #E4E4E4;

    &.hxiw-page-header-scroll {
      background-color: #ffffff;
      z-index: 2;
      box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
    }

    .hxiw-page-header-content {
      height: 72px;
      display: flex;
      align-items: center;
      margin: 0 auto;
      padding: 0 12px;
      box-sizing: border-box;

      .hxiw-page-header-content-left {
        width: 168px;
      }

      .hxiw-page-header-content-right {
        flex: 1 1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;

        .hxiw-page-navbar {
          list-style: none;
          margin: 0;
          padding: 0;
          display: flex;
          align-items: center;

          .view-site-qrcode-btn {
            cursor: pointer;
          }

          > li {
            color: #4E4E4E;
            font-weight: 400;
            font-size: 14px;
            line-height: 1;
            text-align: center;
            position: relative;

            > a {
              color: #4E4E4E;
              text-decoration: none;
              transition: all .3s;

              &.active {
                font-weight: 600;
                font-size: 16px;
                color: var(--ant-color-primary);
                text-underline-offset: 8px;
                text-decoration: underline solid #1E60C5 3px;
              }

              &:hover {
                color: #1E60C5;
              }
            }

            &:not(:last-child) {
              margin-inline-end: 48px;
            }
          }
        }


      }
    }
  }

  > .hxiw-page-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column; /* 确保子元素垂直排列 */
    align-items: flex-start;
    //margin: 0 auto;
    margin-right: auto;
    margin-left: auto;
    padding: 12px;
    box-sizing: border-box;


    > .hxiw-page-content {
      flex: 1;
      display: flex;
      flex-direction: column; /* 确保子元素垂直排列 */
      align-items: flex-start;
      padding: 16px 0 56px 0;
      min-height: 100%; /* 确保至少填充父元素高度 */


      > * {
        flex: 1;
        width: 100%;
      }
    }
  }

  > .hxiw-page-footer {
    background: #13294B;
    border-radius: 0;

    .hxiw-page-footer-content {
      display: flex;
      align-items: center;
      flex-direction: column;
      margin: 0 auto;
      padding: 0 12px;
      box-sizing: border-box;
      font-size: 12px;
      color: #FFFFFF;


      .hxiw-page-miscellaneous {
        margin: 18px 0 0 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;

        .hxiw-page-miscellaneous-left {
          width: 157px;
          margin-right: 24px;
        }

        .hxiw-page-miscellaneous-center {
          flex: 1;
          display: flex;
          justify-content: space-between;

          padding-left: 27px;
          border-left: 1px solid #223C61;
          margin-right: 48px;

          .hxiw-page-contact-info {
            display: flex;
            flex-direction: column;
            gap: 7px;

            > div {
              > span {
                > .anticon {
                  color: #ffffff;
                  margin-right: 8px;
                }

                display: inline-block;
                margin-right: 5px;
              }
            }
          }

          .hxiw-page-legal-info {
            display: flex;
            align-items: center;
            gap: 48px;

            > a {
              color: #ffffff;
              text-decoration-line: none;

              &:hover {
                text-decoration-line: underline;
              }
            }
          }
        }

        .hxiw-page-miscellaneous-right {
          display: flex;
          justify-content: flex-end;

          .ant-qrcode {
            padding: 6px;
          }
        }
      }


      .hxiw-page-website-record-info {
        border-top: 1px solid #223C61;
        width: 100%;
        height: 32px;
        line-height: 32px;
        color: rgba(255, 255, 255, 0.5);

        text-align: center;

        a {
          color: rgba(255, 255, 255, 0.5);
        }
      }
    }
  }


  .hxiw-page-logo {
    display: inline-flex;
    align-items: center;

    img {
      height: 48px;
    }
  }
}

.hx-mobile-qrcode-wrapper {
  display: flex;
  gap: 24px;
  padding: 4px;

  > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
}

.ant-btn-color-link.ant-btn-variant-link.hxiw-page-navbar-mobile-btn {
  color: #4E4E4E;
}

.hxiw-page-mobile-navbar-wrapper {
  .ant-popover-inner {
    padding: 0;
  }

  .hxiw-page-navbar {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 16px;

    > li {
      &.navbar-divider {
        border-bottom: 1px solid #E4E4E4;
        margin: 12px 0;
      }

      > a {
        display: block;
        min-width: 200px;
        padding: 12px 24px;
        color: #4E4E4E;

        &.active {
          font-weight: 600;
          font-size: 16px;
          color: var(--ant-color-primary);
        }

        &:hover {
          color: #1E60C5;
        }
      }
    }
  }
}

@media (max-width: @screen-md-max) {
  :where(.hxiw-page-layout) > .hxiw-page-footer .hxiw-page-footer-content {
    .hxiw-page-website-record-info {
      margin-top: 20px;
      height: auto;
      padding-top:20px;
    }

    .hxiw-page-miscellaneous {
      flex-wrap: wrap;
      justify-content: center;
      flex-direction: column;
      margin-bottom: 16px;

      .hxiw-page-miscellaneous-left {
        margin-right: 0;
        width: 118px;
      }

      .hxiw-page-miscellaneous-center {
        flex-direction: column;
        margin-top: 20px;

        .hxiw-page-contact-info {
          align-items: center;
        }

      }

      .hxiw-page-miscellaneous-right {

      }

      .hxiw-page-legal-info {
        align-self: center;
        margin: 20px;
        justify-self: baseline;
      }
    }

  }

  .hxiw-page-header .hxiw-page-header-content .hxiw-page-header-content-right {
    //flex-direction: row-reverse;
    justify-content: end;
    gap: 15px
  }
}


